//
//  HomePage_WebViewController.m
//  MagicBox
//
//  Created by dllo on 16/8/12.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "HomePage_WebViewController.h"

@interface HomePage_WebViewController ()<UIWebViewDelegate>

@property (nonatomic, retain)UIWebView *webView;

@end

@implementation HomePage_WebViewController

- (void)viewDidLoad {
    [super viewDidLoad];
  
  }
-(void)setUrlStr:(NSString *)urlStr{
    _urlStr = urlStr;
    
    self.webView = [[UIWebView alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height-SCREENHEIGHT/6.6)];
    [self.view addSubview:_webView];
    NSURL *url =[NSURL URLWithString:_urlStr];
    NSURLRequest *quest = [NSURLRequest requestWithURL:url];
    [self.webView loadRequest:quest];
    self.webView.delegate = self;

    
}


@end
